export tag=v1.1.0
root:
	export ROOT=/usr/local/go

build:
	echo "building httpserver"
	mkdir -p /home/cncfstudy/httpserver
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /home/cncfstudy/httpserver  .

release: build
	echo "building httpserver container"
	docker build -t cncfstudy/httpserver:${tag} .

push: release
	echo "pushing cncfstudy/httpserver"
	docker push cncfstudy/httpserver:${tag}
